package com.leetao.dingtalk.core.domain.rest;

/**
 * 结果枚举
 * @author 菅江晖
 * @date 2021/4/27 - 9:53
 */
public enum ResultEnum {
    /**
     * 无操作权限
     */
    UN_AUTHORITY(506,"无操作权限"),
    ;


    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    /**
     * 错误码
     * @return code
     */
    public int code() {
        return code;
    }

    /**
     * 消息
     * @return msg
     */
    public String msg() {
        return msg;
    }

    int code;
    String msg;
}
